package com.hyq.controller;

import com.hyq.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class SkipContorller {

    //首页跳转
    @RequestMapping("index")
    public String toIndex(User userInfo, HttpServletRequest request){
        return "index";
    }

    //首页跳转
    @RequestMapping("")
    public String index(User userInfo, HttpServletRequest request){
        return toIndex(userInfo,request);
    }


}
